package com.ftg.shopping.person.controller;

import com.ftg.shopping.person.service.CreuserService;
import com.ftg.shopping.user.entity.sp_userinfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api
@RequestMapping("/api/user")
public class creuserController {

    @Autowired
    CreuserService creuserService;

    @ApiOperation("这是创建用户功能")
    @PostMapping("/insertuser")
    public int insertuser(sp_userinfo sp_userinfo){
        return creuserService.insertuser(sp_userinfo);
    }
}
